# coding:utf-8
from django.http import HttpResponse
from django.http import JsonResponse
from django.core import serializers
import json


def index(request):
    return HttpResponse(u"this is learn index page!!!")


def add(request):
    a = request.GET['a']
    b = request.GET['b']
    c = int(a) + int(b)
    return HttpResponse(str(c))


def ajax_t(request):
    res = {"name": "hello", "age": 10}
    return JsonResponse(res, safe=False)
